Crate caffe2_imports

source ·

Re-exports

Modules

  • The Rust Core Library
  • Atomic types
  • A priority queue implemented with a binary heap.
  • An ordered map based on a B-Tree.
  • An ordered set based on a B-Tree.
  • clap is a simple-to-use, efficient, and full-featured library for parsing command line arguments and subcommands when writing console/terminal applications.
  • Core functionality
  • Utilities for formatting and printing Strings.
  • A hash map implemented with quadratic probing and SIMD lookup.
  • A hash set implemented as a HashMap where the value is ().
  • A macro for declaring lazily evaluated statics.
  • A doubly-linked list with owned nodes.
  • Multi-producer, single-consumer FIFO queue communication primitives.
  • A double-ended queue (deque) implemented with a growable ring buffer.

Macros

Structs

Enums

Constants

Traits

  • CoerceUnsizedExperimental
    Trait that indicates that this is a pointer or a wrapper for one, where unsizing can be performed on the pointee.
  • DispatchFromDynExperimental
    DispatchFromDyn is used in the implementation of object safety checks (specifically allowing arbitrary self types), to guarantee that a method’s receiver type can be dispatched on.
  • The addition operator +.
  • The addition assignment operator +=.
  • The bitwise AND operator &.
  • The bitwise AND assignment operator &=.
  • The bitwise OR operator |.
  • The bitwise OR assignment operator |=.
  • The bitwise XOR operator ^.
  • The bitwise XOR assignment operator ^=.
  • Generic trait for floating point complex numbers.
  • Used for immutable dereferencing operations, like *v.
  • Used for mutable dereferencing operations, like in *v = 1;.
  • The division operator /.
  • The division assignment operator /=.
  • Custom code within the destructor.
  • Error is a trait representing the basic expectations for error values, i.e., values of type E in Result<T, E>.
  • Generic trait for floating point numbers
  • The version of the call operator that takes an immutable receiver.
  • The version of the call operator that takes a mutable receiver.
  • The version of the call operator that takes a by-value receiver.
  • FromParallelIterator implements the creation of a collection from a ParallelIterator. By implementing FromParallelIterator for a given type, you define how it will be created from an iterator.
  • Extract a type from a Python object.
  • FromResidualExperimental
    Used to specify which residuals can be converted into which crate::ops::Try types.
  • GeneratorExperimental
    The trait implemented by builtin generator types.
  • A hashable type.
  • A trait for hashing an arbitrary stream of bytes.
  • Used for indexing operations (container[index]) in immutable contexts.
  • Used for indexing operations (container[index]) in mutable contexts.
  • An iterator that supports “random access” to its data, meaning that you can split it at arbitrary indices and draw data from those points.
  • IntoParallelIterator implements the conversion to a ParallelIterator.
  • IntoParallelRefIterator implements the conversion to a ParallelIterator, providing shared references to the data.
  • IntoParallelRefMutIterator implements the conversion to a ParallelIterator, providing mutable references to the data.
  • Defines a conversion from a Rust type to a Python object.
  • Returns an owned pointer to a Python object.
  • Support trait for enabling a few common operation on lazy static values.
  • OneSidedRangeExperimental
    OneSidedRange is implemented for built-in range types that are unbounded on one side. For example, a.., ..b and ..=c implement OneSidedRange, but .., d..e, and f..=g do not.
  • A trait for dealing with iterators.
  • The multiplication operator *.
  • The multiplication assignment operator *=.
  • The unary negation operator -.
  • The unary logical negation operator !.
  • The base trait for numeric types, covering 0 and 1 values, comparisons, basic numeric operations, and string conversion.
  • Conversion trait to convert an Iterator to a ParallelIterator.
  • ParallelDrainFull creates a parallel iterator that moves all items from a collection while retaining the original capacity.
  • ParallelDrainRange creates a parallel iterator that moves a range of items from a collection while retaining the original capacity.
  • ParallelExtend extends an existing collection with items from a ParallelIterator.
  • Parallel version of the standard iterator trait.
  • Parallel extensions for slices.
  • Parallel extensions for mutable slices.
  • Parallel extensions for strings.
  • A marker trait indicating that a type is Plain Old Data.
  • Generic trait for primitive integers.
  • Trait implemented by Python object types that allow a checked downcast. If T implements PyTryFrom, we can convert &PyAny to &T.
  • Trait implemented by Python object types that allow a checked downcast. This trait is similar to std::convert::TryInto
  • ResidualExperimental
    Allows retrieving the canonical type implementing Try that has this type as its residual and allows it to hold an O as its output.
  • RangeBounds is implemented by Rust’s built-in range types, produced by range syntax like .., a.., ..b, ..=c, d..e, or f..=g.
  • The Read trait allows for reading bytes from a source.
  • A trait for real number types that do not necessarily have floating-point-specific characteristics such as NaN and infinity.
  • The remainder operator %.
  • The remainder assignment operator %=.
  • The left shift operator <<. Note that because this trait is implemented for all integer types with multiple right-hand-side types, Rust’s type checker has special handling for _ << _, setting the result type for integer operations to the type of the left-hand-side operand. This means that though a << b and a.shl(b) are one and the same from an evaluation standpoint, they are different when it comes to type inference.
  • The left shift assignment operator <<=.
  • The right shift operator >>. Note that because this trait is implemented for all integer types with multiple right-hand-side types, Rust’s type checker has special handling for _ >> _, setting the result type for integer operations to the type of the left-hand-side operand. This means that though a >> b and a.shr(b) are one and the same from an evaluation standpoint, they are different when it comes to type inference.
  • The right shift assignment operator >>=.
  • A struct that is converted from command line arguments.
  • TryExperimental
    The ? operator and try {} blocks.
  • The subtraction operator -.
  • The subtraction assignment operator -=.
  • The trait to implement to get setup/teardown functionality for tests.
  • Conversion trait that allows various objects to be converted into PyObject.
  • A trait for objects which are byte-oriented sinks.
  • Used for immutable dereferencing operations, like *v.

Functions

Type Definitions

Attribute Macros

Derive Macros